package sy3;


public class MainProgram {
    public static void main(String[] args) {
        System.out.println("=== 面向对象的软件构造实验 - 设计一 ===");
        System.out.println();
        
        Exercise exercise = new Exercise();
        
        // 生成50道加法题
        System.out.println("50道加法运算题：");
        exercise.generateAdditionExercise(50);
        exercise.formateAndDisplay(5);
        
        // 生成50道减法题
        System.out.println("\n50道减法运算题：");
        exercise.generateSubstractExercise(50);
        exercise.formateAndDisplay(5);
        
        // 生成50道混合题
        System.out.println("\n50道加减法混合运算题：");
        exercise.generateBinaryExercise(50);
        exercise.formateAndDisplay(5);
    }
}